const ExtendModule = require("./base");
const Queue = require('./../lib/queue');

let index = {
	queue: new Queue(),
	refresh(context, files, map, manager) {
		return this.queue.add(() => {
			return new ExtendModule(context, manager).replaceAll(files, map);
		});
	}
};

module.exports = index;